package com.xy.annotaion.handler.processor;

import com.xy.annotaion.handler.common.log.LogService;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.stereotype.Component;

/**
 * @author Dell
 */
@Component
public class TestBeanPostProcessorImpl implements BeanPostProcessor, LogService {
    @Override
//    @TestLog//not OK
    public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
//        Pointer.lg("postProcessBeforeInitialization:",beanName,bean);
        return bean;
    }

    @Override
//    @TestLog//not OK
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
//        Pointer.lg("postProcessAfterInitialization:",beanName,bean);
        return bean;
    }
}
